﻿
namespace LanguageFeatures.Models
{
    public class DefaultDiscountHelper : IDiscountHelper
    {
        //public decimal DiscountSize { get; set; }

        public decimal discountSize = 100m;
        public DefaultDiscountHelper()
        {
        }
        /*public DefaultDiscountHelper(decimal discountParam)
        {
            discountSize = discountParam;
        }*/
        public decimal ApplyDiscount(decimal totalParam)
        {
            return (totalParam - (discountSize / 100m * totalParam));
        }
    }
}
